//
//  BPScreenManager.m
//  BPScreenManager_Example
//
//  Created by SiYugui on 2020/4/30.
//  Copyright © 2020年 xuhongji. All rights reserved.
//

#import "BPScreenManager.h"


@implementation BPScreenManager

static BPScreenManager *manager = nil;

+ (instancetype)shareInstance{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[BPScreenManager alloc] init];
    });
    return manager;
}

#pragma mark - public

- (void)openScreenShoting {
    BPScreenShotManager *shoter = [BPScreenShotManager shareInstance];
    [shoter addShotNotificationWithDelegate:nil];
    _shoter = shoter;
}

- (void)openScreenSafeBlur {
    BPScreenBlurManager *blur = [BPScreenBlurManager shareInstance];
    [blur openScreenSafeBlur];
    _blur = blur;
}

@end
